<%
  #File:    /app/views/jobs/_form.rhtml
  #Author:  Andrew Stone
  #Created: 08.07.2006
  title = "Creating Job"
  title = "Updating Job id: #{@job.id}" if @job.id
  action = "create"
  action = "update" if @job.id
%>

<%=error_messages_for("job")%>  

<%=start_form_tag(:action => action)%>

<%=start_large_div_wrapper%>
  <div id="page_title"><%=title%></div>
  <div id="large">
    <table>
      <tbody>
        <tr>
          <td class="req_label">* Position Title:</td>
          <td class="data">
            <%=text_field("job","title")%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Department:</td>
          <td class="data">
            <%=text_field("job","department")%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Supervisor:</td>
          <td class="data">
            <%=text_field("job","supervisor")%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Location:</td>
          <td class="data">
            <%=text_field("job","location")%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Posting start:</td>
          <td class="data">
            <%=date_select("job","period_start")%> <br/> 
          </td>
        </tr>
        <tr>
          <td class="req_label">* Posting end:</td>
          <td class="data">
            <%=date_select("job","period_end")%>
          </tr>
        <tr>
          <td colspan="2"><hr/></td>
        </tr>
        <tr>
          <td class="req_list_label">* Purpose of Position:</td>
          <td class="data">
            <%=text_area("job","description","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
        <tr>
          <td colspan="2"><hr/></td>
        </tr>
        <tr>
          <td colspan="2">
            <strong>
            The text entered below is converted into a bulleted list.  Please place each item on a separate line using the enter key.
            </strong>
          </td>
        </tr>
        <tr>
          <td class="req_list_label">* Essential Functions:</td>
          <td class="data">
            <%=text_area("job","essential_functions","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
        <tr>
          <td class="list_label">Non-Essential Functions:</td>
          <td class="data">
            <%=text_area("job","non_essential_functions","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
        <tr>
          <td class="list_label">Success Factors:</td>
          <td class="data">
            <%=text_area("job","success_factors","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
        <tr>
          <td class="list_label">Required:</td>
          <td class="data">
            <%=text_area("job","required_list","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
        <tr>
          <td colspan="2"><hr/></td>
        </tr>
        <tr>
          <td colspan="2">
            <strong>
              The below sections have been prefilled with default text.  Can change if needed. 
            </strong>
          </td>
        </tr>
        <tr>
          <td class="list_label">Physical Demands:</td>
          <td class="data">
            <%=text_area("job","physical_demands","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
        <tr>
          <td class="list_label">How to respond:</td>
          <td class="data">
            <%=text_area("job","how_to_respond","cols" => 60, "rows" => 8)%>
						<br/>Please complete the 
						<%= secure_link_to("Job Interest Request (JIR) form", 
										ca("/pages", "view_document", "209")) %>
					  for consideration.
          </td>
        </tr>
        <tr>
          <td class="list_label">Notice:</td>
          <td class="data">
            <%=text_area("job","notice","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
        <tr>
          <td class="list_label">Footer:</td>
          <td class="data">
            <%=text_area("job","footer","cols" => 60, "rows" => 8)%>
          </td>
        </tr>
      </tbody>
    </table>
    <%=hidden_field("job","id")%>
    <div id="actions">
      <%=submit_tag("Cancel")%>
      <%=submit_tag(action.capitalize)%>
    </div>
  </div>
<%=end_div_wrapper%>
<%=end_form_tag%>
